package com.ruoyi.basedata.domain;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseDO;
import lombok.*;

import java.util.Date;

/**
 * 过户记录对象 t_transfer
 * 
 * @author ruoyi
 * @date 2023-09-07
 */
@EqualsAndHashCode(callSuper = true)
@Data
@Builder
@AllArgsConstructor
@NoArgsConstructor
@TableName("t_transfer")
public class Transfer extends BaseDO
{
    private static final long serialVersionUID = 1L;

    /** 平台自增主键 */
    @TableId
    @JsonProperty("ID")
    private Long ID;

    /** 租户ID */
//    @Excel(name = "租户ID")
    @TableField("tenant_id")
    private String tenantId;

    /** 原用户编号 */
    @Excel(name = "原用户编号")
    @TableField("Old_UserID")
    private String oldUserid;

    /** 新用户编号 */
    @Excel(name = "新用户编号")
    @TableField("New_UserID")
    private String newUserid;

    /** 过户时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "过户时间", width = 30, dateFormat = "yyyy-MM-dd")
    @TableField("gh_time")
    private Date ghTime;

    @TableField(exist = false)
    private String belongDepartment;

    @TableField(exist = false)
    @Excel(name = "原用户名称")
    private String oldUserName;

    @TableField(exist = false)
    @Excel(name = "新用户名称")
    private String newUserName;

}
